#include "WindowHandler.h"
#include "Renderer.h"

int main()
{
	WindowHandler* mainWindow = new WindowHandler();
	mainWindow->initialize();
	mainWindow->openWindow();

	int w = 400; int h = 400;
	mainWindow->setWindowSize(w, h);
	mainWindow->setWindowTitle("Platformer");
	mainWindow->setWindowPos(800, 100);

	{
		Renderer* renderer = new Renderer();
		renderer->initialize();

		while(mainWindow->isOpened())
		{
			renderer->display();
		}

		renderer->cleanup();
		delete renderer;
	}

	mainWindow->closeWindow();
	mainWindow->cleanup();
	delete mainWindow;

	return 0;
}